package com.dmcb.trade.business.mappers;

import com.dmcb.trade.business.entities.ArticleUrl;

import java.util.List;

/**
 * Created by miting on 2018/10/18.
 */
public interface ArticleUrlMapper {

    //保存一条数据
    int insertAll(String link, String platform, String domain);

    //查找指定articleUrl是否存在数据库
    int queryByLink(String link);

    //查询表所有
    List<ArticleUrl> queryList();

    //查找指定domain是否存在数据库
    int queryByDomain(String domain);

    //根据domain修改链接
    void updateByDomain(int rState,String link, String domain);

}
